﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfDrawingView.aspx.cs" Inherits="msBsc.WebUi.wfDrawingView" %> 

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server"> 
    <title>活动抽奖</title> 
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/??themes/Style1/StyleQt.css" />  
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js,jqPlugin/js/laytpl.js" type="text/javascript"></script>
    <!--head fix rgn--> 
    <script type="text/javascript"> 
        $(window).load(function () {  
//            $("#J_BtnEmailForm").click(function () {
//                if (getAllValiInp()) {
//                    var _jsParam = new jsonRow();
//                    _jsParam.AddCell("ACTION", "REGIST_STEP1");
//                    _jsParam.AddCell("EMAIL", $("#J_Email").val());
//                    _jsParam.AddCell("VALIDATE_CDE", $("#J_CheckCodeInput").val());
//                    ajaxComm(_jsParam);
//                }
//            }); 
        }); 
    </script> 
    <style type="text/css">
        #shopExtra .slogo a
        {
            color: #555;
            line-height: 80px;
            font-size: 22px;
            margin-top:80px;
            margin-left:6px;
        }
         
	#imgMainWrap{height: auto; }
	#goodsImgBox{width: 350px; padding: 10px;  float: left;}
	#goodsInfoBox{width: 700px; height: 330px; float: left; background-color: #f8f8f8; padding: 20px 40px;font-size: 18px;
		margin-left: 30px;}
	#goodsCurrentImg{width: 350px; height: 350px;}
	#goodsImgNav a{width: 80px; height: 80px; display: block; float: left; margin-left: 20px; cursor: pointer;}
	#goodsImgNav a img{width: 80px; height: 80px;}
	
	#goodsName{height: auto; font-size: 22px; font-weight: bold;color:#e72e1c; line-height: 1.5; font-family: '微软雅黑';}
	#joinNums{height: 60px; overflow: hidden; line-height: 60px; font-size: 18px; color: #333;}
	#joinNums span{font-size: 28px; font-weight: bold; color: #c33;}
	.gi_parm{height: 35px; line-height: 35px;}
	.gi_parm span{padding-left: 30px;}
	
	#goodsPointTxt{width: 80px; padding-left: 20px; float: left; line-height: 30px; color: #fff;}
	#goodsPointVal{width: auto; float: left; font-size: 30px; line-height: 36px; font-weight: bolder; 
		color: #fff;}
	
	.gdNav{height: 36px; border-bottom: 1px solid #dfdfdf; background-color: #fff;}
	.gdNavBtn{width: 90px; height: 35px; border-top: 2px solid #ea2e49; border-left: 1px solid #cfbfb1; 
		border-right: 1px solid #cfbfb1; line-height: 35px; float: left; font-size: 14px; 
		color: #ea2e49; text-align: center; background-color: #fff;}
	
	.pdTab{width: 70%; background-color: #dfdfdf; margin: 30px auto;}
	.pdTab td{padding: 10px; background-color: #fff; line-height: 22px; font-size: 14px;}
	.openTit{width:70%; height: 35px; line-height: 35px; margin: auto; text-align: center; background-color: #e8f6f9;
		font-size: 16px; font-weight: bold;}
	.unOpen{text-align: center; line-height: 80px; font-size: 14px;}
	.opened{}
	
	.win_item{clear: both; height: 24px; line-height: 22px; overflow: hidden;}
	.wi_user{width: 250px; height: 24px; float: left;}
	.wi_point{width: 220px; height: 24px; float: left;}
    </style>
</head>
<body> 
 <input id="txxtid" type="hidden" value=""> 
    <div id="mallPage" class="tms-page mallAct tmall-  page-not-market"  >

        <!-- -->
        <!--商城通用顶通-->
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderTopHtml()%>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderLogoHtml("活动抽奖")%> 
        
<div>
 <div  style="  height:3px;  background-color:#c40000;  margin-top:3px;"></div>

</div>  
<div class="page lang-zh-S" style=" background-color:#fff; margin:auto; margin-top:10px;width:1190px; position:relative;top:0px; padding:10px; z-index:11; ">

		 
		 
	
	<div class="content">
    

    <div class="c_con">
			
<div id="imgMainWrap">
        <textarea id="data_into_temp" style="display: none;">  
        {{# for(var i=0,len=d.rows.length;i < len;i++){}}
				<div id="goodsImgBox">
					<img id="goodsCurrentImg" src="{{d.rows[i].DRAW_TITLE_IMG_URL}} 440x440img.jpg">
				</div>
				<div id="goodsInfoBox">
					<div id="goodsName">{{d.rows[i].DRAW_TITLE}}</div>
					<div id="joinNums">已抽奖&nbsp;<span id="joinNumsWrap">{{d.rows[i].PARTAKE_COUNT}}</span>&nbsp;次</div>
					<div class="gi_parm">状　　态<span style="color:#e72e1c;">{{d.rows[i].DRAWING_STATUS}}</span></div>
					<div class="gi_parm">抽奖时间<span>{{d.rows[i].PARTAKE_DT_S}}&nbsp;&nbsp;~&nbsp;&nbsp;{{d.rows[i].PARTAKE_DT_E}}</span></div>
					<div class="gi_parm">开奖时间<span>{{d.rows[i].DRAWING_DT}}&nbsp;开出&nbsp;{{d.rows[i].WINNER_COUNT}}&nbsp;位中奖者</span></div>
                            {{# if(d.rows[i].DRAWING_STATUS=='兑奖中' ){}} 
					<div class="gi_parm">兑奖截止<span>{{d.rows[i].DRAWING_EXPIRE_DT}} </span></div>
						    {{#}}}
					<div style="padding-top: 20px;"> 
                            {{# if(d.rows[i].DRAWING_STATUS=='正在抽奖' && d.rows[i].WIN_NO=='' && d.rows[i].USER_NME==''){}}                            
                            （<span>你未参与当前活动，请登录后参与！</span>）
						    {{#}}}
                            {{# if(d.rows[i].DRAWING_STATUS=='正在抽奖' && d.rows[i].WIN_NO=='' && d.rows[i].USER_NME!=''){}}  
                            <div id="divshowpartake">                 
                            （<span>你未参与当前活动，请点击下面的按钮参与！</span>）
						    <table border="0" cellpadding="0" cellspacing="0"><tr><td><button type="button" class="btn btn-large tsl" data-phase-id="r_p_next" id="J_BtnEmailForm">开始抽奖</button> </td> <td style=" padding-left:10px;"> 验证码:</td> <td><input id="J_CheckCodeInput" name="imgChkcode" class="vali-inp" style="width:100px; line-height:13px;" type="text" value="" reg-targ="J_CheckCodeContainer" reg-exp="^[0-9]{4}$" right-msg="请填写正确的验证码"/></td>
						    <td style=" padding:3px;"><div id="J_CheckCodeContainer" class="checkcode-container"  title="请输入验证码！"></div> </td></tr></table>
					        </div>    
						    {{#}}}
                            {{# if(d.rows[i].WIN_NO!='' && d.rows[i].PRIZE_NME==''){}}    
                            （<span >你的抽奖号码：{{d.rows[i].WIN_NO}}</span>） 
						    {{#}}}
                            {{# if(d.rows[i].WIN_NO!='' && d.rows[i].PRIZE_NME!=''){}}                            
                            （<span>你的抽奖号码：{{d.rows[i].WIN_NO}}，你已中奖【{{d.rows[i].PRIZE_NME}}】，请于【{{d.rows[i].DRAWING_EXPIRE_DT}}】前兑奖！</span>）
						    {{#}}}
					</div> 
					<div style="padding-top: 20px;"> 
					</div> 
				</div>
        {{#}}}
        </textarea>


                
     <%=GetDataListJavaScriptPub("", "", "")%>

    <script type="text/javascript">
        var tpl = HtmlUtil.htmlDecode($('#data_into_temp').html());
        laytpl(tpl).render(DataPub, function (render) {
            $('#data_into_temp').after(render).remove();
            jQuery.getValidateImg('J_CheckCodeContainer');
        });

        $("#J_BtnEmailForm").live("click", function () { 
            if (getAllValiInp()) {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("ACTION", "REGIST_STEP1");
                _jsParam.AddCell("VALIDATE_CDE", $("#J_CheckCodeInput").val());
                _jsParam.AddCell("ID", $("#txxtid").val());
                ajaxComm(_jsParam);
            }
        });
        setAllValiInp();

    </script> 

    
        <textarea id="data_list_temp" style="display: none;">  
				<div style="clear: both; height: auto;">
        {{# for(var i=0,len=d.rows.length;i < len;i++){}}
					<div class="gdNav">
						<div class="gdNavBtn">抽奖详情</div>
					</div>
					<div style="height: 40px; background-color: #faf1db; padding: 0px 15px; line-height: 40px; margin-top: 10px;">
					<%--	<a href="http://www.yhcmall.com/pagex.htm?i=32" target="_blank" class="aLink_pink" style="font-size: 14px; color: #f00; font-weight: bold;">关于恶意注册参与抽奖的处理公告</a>--%>
					</div>


					<table class="pdTab" border="0" cellpadding="0" cellspacing="1" style=" ">
						<tbody><tr> 
							<td  colspan="3" style=" font-weight:bold; ">{{d.rows[i].PRIZE_CLASS}}</td> 
						</tr>
						<tr style=" border:1px solid #999;">
							<td style=" border:1px solid #999;" rowspan="3"> 
					<img id="Img1" src="{{d.rows[i].PRIZE_IMG_URL}} 140x140img.jpg">
                            </td>
							<td style=" border:1px solid #999;">奖品来源</td>
							<td style=" border:1px solid #999;">
							<p><a href="{{d.rows[i].PRIZE_GOODS_URL}}" class="aLink_pink" target="_blank">{{d.rows[i].PRIZE_NME}}</a></p>	
                            <p style=" font-size:12px;color:#999;">{{d.rows[i].PRIZE_DESC}}</p>
							</td>
						</tr>
						<tr style=" border:1px solid #999;">
							<td style=" border:1px solid #999;">奖品数量</td>
							<td>{{d.rows[i].WINNER_COUNT}}</td>
						</tr>
						<tr style=" border:1px solid #999;">
							<td style=" border:1px solid #999;">提供店铺</td>
							<td style=" border:1px solid #999;">
								<a href="{{d.rows[i].PRIZE_SHOP_URL}}" class="aLink_pink" target="_blank">{{d.rows[i].PRIZE_SHOP_NME}}</a>
							</td>
						</tr>
					</tbody></table>
        {{#}}}
        {{# for(var i=0,len=d.rows.length;i < len;i++){}}
					<div class="openTit">获奖会员名单</div> 
						<div class="opened"> 
                        {{# for(var r=0,lenr=d.rows[i].rows.length;r < lenr;r++){}}
                        <div style="width:150px; line-height:32px;float:left;">{{d.rows[i].rows[r].USER_NME}}</div>
                        {{#}}}
						</div> 
        {{#}}}
				</div>
        </textarea>

			</div>

             
             
			<div style="height: 15px; clear: both;"></div>
			
             
		</div>



		<div  style=" background-color:#fff; padding:50px; margin:10px;">  
            <div style=" font-size:32px; line-height:33px;color:#e72e1c; text-align:center; margin-bottom:20px;">抽奖规则</div>
				<div  style=" font-size:22px; line-height:33px;color:#000;">  
                           <p> 1. 注册用户对每次活动都有一次抽奖机会</p>
                           <p> 2. 每次抽奖都会获得一个抽奖号码</p>
                           <p> 3. 开奖时，系统从所有的抽奖号码中、随机抽取并公布中奖会员名单</p> 
                           <p> 4. 领奖地址：济宁市 市中区 运河城 京杭 A座1005室，电话：0537-2261567</p> 
                           <p> 5. 请一定要在兑奖截止日期前领取奖品，逾期作废</p>   
					 
				</div>  
			</div>

     <%=GetDataListJavaScriptPrize("", "", "")%>

    <script type="text/javascript">
        var tpl = HtmlUtil.htmlDecode($('#data_list_temp').html());
        laytpl(tpl).render(DataPrize, function (render) {
            $('#data_list_temp').after(render).remove();
        });
    </script> 





		</div> 
</div>
<div style="clear:both;height:5px; line-height:5px;"></div>

<div>
 <div  style="  height:20px;  background-color:#c40000;  margin-top:20px;">
 
 
 
 
 </div>

</div>
  
<div style="clear:both;height:5px; line-height:5px;"></div>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetFloorHtml()%> 
    </div>
    <!-- foot script --> 
</body>
</html>
